package generator;

import com.jfinal.plugin.activerecord.generator.MetaBuilder;

import javax.sql.DataSource;
import java.util.Arrays;
import java.util.List;

/**
 * 自动生成modul table过滤器
 *
 * @authc yaowk
 * 2017/4/21
 */
public class SystemMetaBuilder extends MetaBuilder {
    public SystemMetaBuilder(DataSource dataSource) {
        super(dataSource);
    }

    private String[] tableNames = new String[] {
            "module_platform","platform","mailbox","handle","user"
    };

    private List<String> tableNameList = Arrays.asList(tableNames);


    @Override
    protected boolean isSkipTable(String tableName) {
        return !tableNameList.contains(tableName);
    }

}
